package com.ice.dao;

import java.util.List;
import java.util.Map;

import org.ice.entity.User;
import org.springframework.stereotype.Repository;



/**
 * 用户操作
 * @author gangchaopan
 *
 */
@Repository("UserDao")
public interface UserDao {

/**
 * 保存用户信息
 * @param userMap
 * @throws Exception
 */
  public void save(Map<String, Object> userMap) throws Exception;
  
  /**
   * 按条件查找user
   * @param openid
   */
  public User findOne(Map<String, Object> where);
  
  /**
   * 按条件查找users
   * @param where
   * @return
   */
  public List<User> findAll(Map<String, Object> where);
  
  /**
   * 按条件更新
   * @param where
   */
  public void update(Map<String, Object> where) throws Exception;
  

}
